/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.db.generator;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author abosancic
 */
public class BaseListModel extends javax.swing.AbstractListModel{ 

    protected List strings = null;
    
    public BaseListModel(String [] strings) {
            this.strings = Arrays.asList(strings);
            Collections.sort(this.strings);
    }    
    
    @Override
    public int getSize() {
        return strings.size();
    }

    @Override
    public Object getElementAt(int i) {
        return strings.get(i);
    }
 
}